package com.four.service.impl;

import com.four.dao.OrdersDao;
import com.four.pojo.Product;
import com.four.service.IOrdersSer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 于志豪
 * @create 2021-10-25 16:08
 */

@Service("ordersSerImpl")
public class OrdersSerImpl implements IOrdersSer {
    @Autowired
    @Qualifier("ordersDao")
    private OrdersDao dao;


    @Override
    public List<Product> findAll(int pid) {
        return dao.findAll(pid);
    }

    @Override
    public List<Product> findAllSP() {
        return dao.findAllSP();
    }

}
